/**
 * 
 */
package com.jquery.ui.tags.javascript.tabs;

import com.jquery.ui.core.base.BaseTag;
import com.jquery.ui.core.bean.UIBean;
import com.jquery.ui.dictionary.IPositionEnum;
import com.jquery.ui.tags.beans.script.TabsScriptUI;

/**
 * @author linyajun
 * 
 * @date	2013-9-24
 * @description   
 */
public class TabsTag extends BaseTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8453773868696818251L;

	private Boolean collapsible=false;
	private Boolean sortable=false;
	private String menuPosition="top";
	
	@Override
	public String getEndTemplate() {
		
		return "tabs-script-end.ftl";
	}

	
	@Override
	public String getStartTemplate() {
		
		return "tabs-script-start.ftl";
	}

	
	@Override
	public UIBean getUiBean() {
		TabsScriptUI tabs=new TabsScriptUI();
		tabs.setCollapsible(collapsible);
		tabs.setSortable(sortable);
		tabs.setMenuPosition(IPositionEnum.parseValue(menuPosition));
		return tabs;
	}


	/**
	 * @return the collapsible
	 */
	public Boolean getCollapsible() {
		return collapsible;
	}


	/**
	 * @param collapsible the collapsible to set
	 */
	public void setCollapsible(Boolean collapsible) {
		this.collapsible = collapsible;
	}


	/**
	 * @return the sortable
	 */
	public Boolean getSortable() {
		return sortable;
	}


	/**
	 * @param sortable the sortable to set
	 */
	public void setSortable(Boolean sortable) {
		this.sortable = sortable;
	}


	/**
	 * @return the menuPosition
	 */
	public String getMenuPosition() {
		return menuPosition;
	}


	/**
	 * @param menuPosition the menuPosition to set
	 */
	public void setMenuPosition(String menuPosition) {
		this.menuPosition = menuPosition;
	}
	
	

}
